<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<script type="text/javascript">
function getMessage(num){
	if(mid==""){return;}
	if(num>0){
		if(document.getElementById('new_pm_icon')){
			$$('#new_pm_icon').each(function(e){e.setStyle({'display':'inline'})});
		}
	}
	//if(num>0){document.getElementById("info").innerHTML = '<a href="http://i.178.com/~sms.index.index">'+num+'</a>';}else{document.getElementById("info").innerHTML = '<a href="http://i.178.com/~sms.index.index">0</a>';}
}
function getCookieValue(varname){if(varname){var a=document.cookie.indexOf(varname+"=");if(a!=-1){return document.cookie.substring((a+varname.length+1),document.cookie.length).split(";")[0];}else{return "";}}}
var mid = getCookieValue('_uid');
</script>
<title><?php
if ($this->__title) {
	echo $this->__title;
} elseif (key_exists($this->app, $_SERVER['LOCALE']['apps'])) {
	if ($_SERVER['LOCALE']['apps'][$this->app][0]) echo $_SERVER['LOCALE']['apps'][$this->app][0] . "  ";
}
$isLogin = self::$login['uid']?true:false;
?>
漫画国际</title>
<link rel="stylesheet" href="http://www.<?=DOMAIN?>/css/css.css"  type="text/css"/>
<link rel="stylesheet" href="http://www.<?=DOMAIN?>/css/style.css"  type="text/css"/>
<link rel="stylesheet" href="http://www.<?=DOMAIN?>/css/base.css" type="text/css" />
<link rel="stylesheet" href="http://www.<?=DOMAIN?>/css/dologin.css" type="text/css" />
<link rel="stylesheet" href="http://www.<?=DOMAIN?>/css/effect.css" type="text/css" />
<?php include('_header.phtml');?>
<?php if($this->headerView) include($this->headerView);?>
</head>
<body><div class="box">
<div class="header" style="position:relative;">

<div class="logovsseach">
<div id="logo2">
<a href="<?=self::_makeURL('index','index','index')?>"><img src="/images/logo_ok.jpg" width="227" height="81" /></a></div>
<div class="searchbox" style="width:350px;">
<form id="searchForm" name="searchForm" method="POST" action="<?=self::_makeURL('index','index','search')?>" onSubmit="return Search.checkFrom('searchForm')">
	<input name="k" type="text" id="keywords" class="keybg1" onfocus="Search._onfocus();" onblur="Search._onblur();" value="请输入漫画名或者作者" />
	<input name="imageField" type="submit" value="" class="bnt_scarch" />
	<br />                
</form> 
		
</div>
</div>
<div class="menu">
 <ul id="nav" class="nav">
  <li class="nav_li"><a class="nav_a" href="http://www.<?=DOMAIN?><?=self::_makeURL('index','index','index')?>">首页</a></li>
  <?if($isLogin):?>
  <li class="nav_li"><a class="nav_a" href="http://www.<?=DOMAIN?><?=self::_makeURL('index','index','my')?>">我的漫画</a></li>
  <?else:?>
  <li class="nav_li" ><a class="nav_a" href="javascript:void(0);" onclick="_popup_login();">我的漫画</a></li>
  <?endif;?>
  <li class="nav_li" >
  <a class="nav_a" href="<?=self::_makeURL('index','index','cate_list')?>" >分类浏览</a>
  <?$__cate_list = cartoon_util_interface::cacheGetCateList();?>
  	<?if($__cate_list):?>
  	<ul class="nav_sub" style="display: none;">
  		<?foreach ($__cate_list as $_ct):?>
		<li><a href="<?=self::_makeURL('index','index','list',array('type'=>2,'k'=>$_ct['id']))?>"><?=$_ct['cate_name']?></a></li>
		<?endforeach;?>
	</ul>
	<?endif;?>
  <!--<div class="nhsys_menu hidden" id="cate_view" >
	<div class="nhsys_menu_inner"> 
	<a href="<?=self::_makeURL('index','index','cate_list')?>" title="分类浏览">分类浏览</a> 
	<a href="/events#Mperform" title="浏览排行">浏览排行</a> 
	</div>
  </div>-->
  </li> 
  <?if(self::$login['uid']):?>
  <li class="nav_li" ><a class="nav_a" href="http://i.<?=DOMAIN?>/?uid=<?=self::$login['uid']?>">个人中心</a></li>
  <?endif;?>
 </ul>
  <?if(!self::$login['uid']):?>
 <ul class="logbot">
   <li id="zhuce"><a class="cl" href="http://i.<?=DOMAIN?>/~member.index.reg">免费注册</a></li>
   <li id="login"><a href="javascript:void(1)" id="do_login" onclick="showPopup('login_popup');">登录</a></li>
 </ul>
 <div class="hidden" id="login_popup">
		<div id="login_form">
		<form method="post" action="http://i.<?=DOMAIN?><?=self::_makeURL('member','login','login')?>" >
		<input type="hidden" value="http://<?=str_replace('index.php','',$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])?>" name="to">
		<p class="textbox">
			<label for="log_email">用户名</label>
				<input type="text" spellcheck="false" id="username" class="noime txt_input r3px" name="username" value="" title="用户名" tabindex="1">
				</p>
				<p class="textbox">
					<!--<span class="fr"><a href="/member/getpassword" class="minor">忘记密码</a></span>-->
					<label for="log_password">密 码</label>
					<input type="password" maxlength="16" id="log_password" class="txt_input r3px" name="pwd" value="" title="密码" tabindex="2">
					<label style="float:right;padding-rigth:10px"><a href="http://i.<?=DOMAIN?>/~member.index.find_pwd" target="_blank">忘记密码</a></label>
				</p>
				<p class="remember clearfix">
					<input type="submit" name="submit" id="log_submit" onfocus="this.blur();" value="登 录" tabindex="4" class="fr text blue_btn blue_btn2 r3px f14">
					<input type="checkbox" id="log_remember" name="always" value="1" tabindex="3">
					<label for="log_remember" class="minor">记住我</label>
				</p>
		</form>
		<hr class="d">
	</div> 
	<a href="http://i.<?=DOMAIN?>/~member.login.login?to=http://<?=$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']?>" class="r3px" id="login_more">使用人人网账号登录 <span>+</span></a>
				
								
			</div>
 <?else:?>
 <div id="n_header_user">
	<div class="n_header_user_loged">
	<dl>
	<dt>
	<span><a href="http://i.<?=DOMAIN?>/?uid=<?=self::$login['uid']?>"> <img width="22" height="22" src="<?=member_util_avatar::get_avatar(self::$login['uid'])?>"><strong><?=mb_strimwidth(self::$login['nickname'],0,10,'…','UTF-8')?></strong></a>
	<b id="_btn_login_done" ></b></span>
	</dt>
	</dl>
	</div>
</div>
 <!--<ul class="logbot">
   <li id="nylogin">
   	<a id="touxiang" href="http://i.<?=DOMAIN?>/uid/<?=self::$login['uid']?>"><img src="<?=$logo?>" width="22" height="22" /></a>
   	<a id="idname" href="http://i.<?=DOMAIN?>/?uid=<?=self::$login['uid']?>"><?=self::$login['nickname']?></a>
   	<a id="xiala" href="javascript:void(0);">下拉</a>
   	<dd style="display: none;">
		<ul>
		<li><a href="http://i.<?=DOMAIN?>/?uid=<?=self::$login['uid']?>">个人主页</a></li>
		<li><a href="http://i.<?=DOMAIN?><?=self::_makeURL('member','index','account')?>">设置</a></li>
		<li><a href="http://i.<?=DOMAIN?><?=self::_makeURL('member','index','logout')?>?to=<?=str_replace('index.php','',$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'])?>">退出</a></li>
		</ul>
		</dd>
   	</li>
   <li class="upload"><a href="#">上传动画</a></li>
 </ul>-->
 <?endif;?>
 	<div class="upload"><a href="http://i.<?=DOMAIN.self::_makeURL('member','cartoon','add_form')?>" target="_blank">上传漫画</a></div>
</div>
<ul class="login_done_css hidden" id="login_done">

			<li><a href="http://i.<?=DOMAIN?>/?uid=<?=self::$login['uid']?>">个人主页</a></li>
			<li><a href="http://i.<?=DOMAIN?><?=self::_makeURL('member','index','account')?>">设置</a></li>
			<li><a href="http://i.<?=DOMAIN?><?=self::_makeURL('member','login','logout')?>?to=<?=str_replace('index.php','',$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'])?>">退出</a></li>
</ul>

</div>

<?php
if (!$this->appFrameView) {
	include($this->rootDir . '/views/frame.phtml');
} else {
	include($this->appFrameView);
}
?>
<div class="link">
<h2><span>友情链接</span><a href="#">申请加入>></a></h2>
<div class="linklist">
<a href="#">推哦网</a><a href="#">T恤客</a><a href="#">推哦网</a><a href="#">T恤客</a><a href="#">推哦网</a><a href="#">T恤客</a><a href="#">推哦网</a><a href="#">T恤客</a><a href="#">推哦网</a><a href="#">T恤客</a><a href="#">推哦网</a><a href="#">T恤客</a><a href="#">推哦网</a><a href="#">T恤客</a><a href="#">推哦网</a><a href="#">T恤客</a><a href="#">推哦网</a><a href="#">T恤客</a><a href="#">推哦网</a><a href="#">T恤客</a><a href="#">推哦网</a><a href="#">T恤客</a><a href="#">推哦网</a><a href="#">T恤客</a><a href="#">推哦网</a><a href="#">T恤客</a><a href="#">推哦网</a><a href="#">T恤客</a><a href="#">推哦网</a><a href="#">T恤客</a></div>
</div>
<script type="text/javascript" src="/js/footer.js"></script>
<script type="text/javascript">
document.observe("dom:loaded",function(){
	var newMenu = new dropDownMenu(".nav_li",0.8,1);
});
</script>
<div id="FlyMessages" style=""></div> 
<?php if($msg = $this->getMessage()):?>
<script>
Event.observe(window, 'load', function(event){
	FloatMessage.show('friendly','<?= $msg?>', 2);
});
</script>
<?php endif;?>
<?php if($msgs = Controller::getFloatMessage()):?>
<script>
<?php foreach($msgs as $msg):?>
Event.observe(window, 'load', function(event){
	FlyMessage.add("<?= addslashes($msg)?>", 1.2);
});
<?php endforeach;?>
</script>
<?php endif;?>
<script type='text/javascript'>
ImageLoader.bindHandlers();
Event.observe(window, 'load', adjust_content_frame);
MessageChecker.initialize();
new PeriodicalExecuter(function(pe){FlyMessage.playQueue(); pe.stop();}, 0.5);
/*if(document.getElementById('do_login')){
$('do_login').observe('click',function(event){
	showPopup(1);
});
}*/
/*Event.observe(document,'click',function(event){
	showPopup(2);});*/
if($('_btn_login_done')){
	Event.observe('_btn_login_done','click',showLoginDone);
}
/*if($('login_done')){
	Event.observe('login_done','click',showLoginDone);
}*/
</script>
<script src="http://i.<?=DOMAIN?>/?_app=sms&_controller=index&_action=check_new&rtype=4" type="text/javascript" charset="utf-8"></script>
</body>
</html>



